<?php
namespace app\home\validate;

use think\Validate;

class GoodsCollarCheck extends Validate
{
    protected $rule = [
        'goods' => 'require',
        'item_id' => 'require',
        'uid' => 'require',
        'out_time' => 'require',
    ];

    protected $message = [
        'goods.require' => '请选择商品',
        'item_id.require' => '请选择项目',
        'uid.require' => '请选择员工',
        'out_time.require' => '请添加出库时间',
    ];

    protected $scene = [
        'add' => ['goods','item_id','uid','out_time'],
    ];
}
